﻿using LPLS.DBEntities.ConfigModels.DeviceInfoModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataCollectionVarConfig
{
    public static  class DataCollectionVarConfigEvent
    {
        public static event Action<DataCollectionVarConfigEventModel> DataCollectionDeviceChangeEvent;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        public static void PublishDataCollectionDeviceChange(DataCollectionVarConfigEventModel model)
        {
            DataCollectionDeviceChangeEvent?.Invoke(model);
        }

    }

    public class DataCollectionVarConfigEventModel 
    {

        public DeviceBaseInfo DeviceModel { get; set; }

        public DeviceComponentInfo DeviceComponent { get; set; }

    }
}
